package com.fengchao.util;

import java.util.Date;
import java.util.Timer;
import java.util.TimerTask;

public class TimerUtil {

    /**
     * 按时间执行timerTask
     *
     * @param date
     * @param timerTask
     */
    public static void execute(Date date, TimerTask timerTask) {
        Timer timer = new Timer();
        timer.schedule(timerTask, date);
    }
}